package se.hb.eme.api.helpers;



public enum ScheduleTypeEnum
{
	MONTHLY(1),
	WEEKLY(2),
	DAILY(3),
	HOURLY(4),
	EACHMINUTE(5);
	
	public void setName(String name){
		
		
		  	
	}
	 
	
	ScheduleTypeEnum(Integer value) 
	{	
		this.value = value;
	}
	
	private final Integer value;
	
	public Integer getValue() 
	{ 		
		return value;
	}	 
	
	public Integer getId() 
	{
		return value;
	}	
	
	@Override
	public String toString() 
	{
		switch (value.intValue())
		{			
			case 1: return "Monthly";
			case 2: return "Weekly";
			case 3: return "Daily";
			case 4: return "Hourly";
			case 5: return "Each minute";
		}	
		return super.toString();		
	} 	
	
	public int compareTo(Integer i)
	{
		return this.value.compareTo(i);
	}

	 
	
}